package com.jzqf.harmonydemo;

import com.jzqf.harmonydemo.utils.ContextApp;
import com.jzqf.harmonydemo.utils.CrashHandler;
import ohos.aafwk.ability.AbilityLifecycleCallbacks;
import ohos.aafwk.ability.AbilityPackage;
import ohos.app.ElementsCallback;

public class MyApplication extends AbilityPackage {
    @Override
    public void onInitialize() {
        super.onInitialize();
        ContextApp.init(this);
        CrashHandler.init(this);
    }

    @Override
    public void registerCallbacks(AbilityLifecycleCallbacks abilityLifecycleCallbacks, ElementsCallback elementsCallback) {
        super.registerCallbacks(abilityLifecycleCallbacks, elementsCallback);
    }
}
